package com.hhf.springboot.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hhf.feiapicommon.model.entity.UserInterfaceInfo;
import com.hhf.springboot.model.dto.interfaceInfo.InterfaceInfoQueryRequest;
import com.hhf.springboot.model.dto.userInterfaceInfo.UserInterfaceInfoQueryRequest;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hhf.springboot.model.vo.InterfaceInfoVO;
import com.hhf.springboot.model.vo.UserInterfaceInfoVO;

/**
* @author 86138
* @description 针对表【user_interface_info(用户接口信息)】的数据库操作Service
* @createDate 2024-10-06 18:37:55
*/
public interface UserInterfaceInfoService extends IService<UserInterfaceInfo> {

    /**
     * 校验
     * @param userInterfaceInfo
     * @param add
     */
    void validUserInterfaceInfo(UserInterfaceInfo userInterfaceInfo, boolean add);

    QueryWrapper<UserInterfaceInfo> getQueryWrapper(UserInterfaceInfoQueryRequest userInterfaceInfoQueryRequest);

    Page<UserInterfaceInfoVO> getUserInterfaceInfoVOPage(Page<UserInterfaceInfo> userInterfaceInfoPage);


    boolean invokeCount(Long userId,Long interfaceInfoId);

}
